package partners

import (
	"time"
)

// 表名也是cache的tag
var TableName = "partners"

// 租户表
type Partners struct {
	Id          int64  `xorm:"pk autoincr"`
	PartnerSign string `xorm:"varchar(64) notnull unique 'partner_sign'"`
	PartnerName string `xorm:"varchar(64) notnull 'partner_name'"`

	Key string `xorm:"char(32) null 'key'"`

	Remark string `xorm:"varchar(256) null 'remark'"`

	AddAdminId int64 `xorm:"int null default(0) 'add_admin_id'"`

	DbRegion string `xorm:"varchar(32) notnull default('') 'db_region'"`

	TableTime int64 `xorm:"INTEGER notnull default(0) 'table_time'"`
	SeedTime  int64 `xorm:"INTEGER notnull default(0) 'seed_time'"`

	Status int `xorm:"tinyint default(0) 'status'"`

	CreatedAt time.Time `xorm:"notnull created 'created_at'"`
	UpdatedAt time.Time `xorm:"null updated 'updated_at'"`
}
